#include <iostream>
#include <fstream>
#include <string>

int main()
{
    std::cout << "Test 1: Basic output" << std::endl;

    // Test file operations
    std::cout << "Test 2: File operations" << std::endl;
    std::ofstream test_file("test_output.txt");
    if (test_file.is_open()) {
        test_file << "Hello from test program" << std::endl;
        test_file.close();
        std::cout << "File write successful" << std::endl;
    } else {
        std::cout << "File write failed" << std::endl;
    }

    // Test reading file
    std::ifstream read_file("test_output.txt");
    if (read_file.is_open()) {
        std::string line;
        std::getline(read_file, line);
        std::cout << "File read: " << line << std::endl;
        read_file.close();
    }

    std::cout << "All tests completed" << std::endl;
    return 0;
}
